//
// Created by 郝羽 on 2018/2/26.
//

#ifndef RTC_XSWITCH2_MIXER2_HPP
#define RTC_XSWITCH2_MIXER2_HPP

#include "xrtc_endpoint.h"

void* mixer2_create(const char* id);

void mixer2_destroy(void*);

int mixer2_add(void*, rtc_endpoint_t);

int mixer2_push(void*, rtc_endpoint_t, unsigned char* buf, size_t size);

int mixer2_mix_frame(void*);

int mixer2_set_tlv_fn(void*, const char* fn);

const char* mixer2_get_tlv_fn(void*) const;

const char* mixer2_get_id(void*) const;

#endif //RTC_XSWITCH2_MIXER2_HPP
